//
//  GC_OCTool.h
//  GC_OC
//
//  Created by 曾 on 2022/1/16.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface GC_OCTool : NSObject
+(CGFloat)getHeightForLabel:(NSString*)str andFont:(UIFont*)font andWidth:(CGFloat)width;
+(void)startTishil:(NSString*)str;
/** 获取宽度  */
+(CGFloat)getWidthForLabel:(NSString*)str andFont:(UIFont*)font andHeight:(CGFloat)height;
+(NSString *)getTimeFromTimestamp:(NSString*)tiemStr;
+(NSString *)removeSpaceAndNewline:(NSString *)str;
+(NSString *)getNowTimeTimestamp;
+(UIWindow *)frontWindow;
+(UIImage *)OriginImage:(UIImage *)image scaleToSize:(CGSize)size;
/**归档路径*/
+(NSString*)filePathWithName:(NSString*)name;
/**解档路径*/
+(NSString*)getFilePathWithName:(NSString *)name;
/**文件路径是否存在*/
+(BOOL)isDirectory:(NSString *)filePath;

+(NSString *)getNowTimeFromTimestamp;
+(void)setModelArrNaem:(NSArray*)array andKeyName:(NSString*)name;
+(NSArray*)getModelArrName:(NSString*)key;
+(NSString *)getNowFHouseTimeTimestamp;
+(NSString *)getNowFMMTimeTimestamp;
+(void)audio_PCMtoMP3:(NSString *)cafFilePath andM4aFilePath:(NSString*)m4aFilePath completion:(void(^)(NSString*data))completionHandle;
+ (NSString *)timeStrWithSecTime:(NSTimeInterval)secTime;
+(NSString *)intervalFromLastDate:(NSString *)dateString1 toTheDate:(NSString *)dateString2;
+ (UIColor *) colorWithHexString: (NSString *)color;
+(void)saveFileAction:(NSString*)filePath;
+(void)clearAllFilePathAction;
+(CGFloat)getMaxWidthForLabel:(NSString*)str andFont:(UIFont*)font andHeight:(CGFloat)height maxWidth:(CGFloat)maxWidth;
@end

NS_ASSUME_NONNULL_END
